Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.pacist.diamonds.RadioGroup

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--com.pacist.diamonds.RadioGroup

public class RadioGroup
extends java.util.Vector
implements java.awt.event.ActionListener
A class for grouping toggle buttons together into a radio group.

See Also:
Serialized Form

Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
void actionPerformed(java.awt.event.ActionEvent event)
          When a DrawnButton has been pressed, this method makes sure it is the only button selected.
void add(DrawnButton b)
          Adds the specified DrawnButton to the RadioGroup.
void remove(DrawnButton b)
          Removes the specified DrawnButton from the RadioGroup.
 
Methods inherited from class java.util.Vector
addAll, addAll, addElement, add, add, capacity, clear, clone, containsAll, contains, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeAll, removeElementAt, removeElement, remove, remove, retainAll, setElementAt, setSize, set, size, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, set, subList
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

add

public void add(DrawnButton b)
Adds the specified DrawnButton to the RadioGroup.
Parameters:
b - an instance of DrawnButton.

remove

public void remove(DrawnButton b)
Removes the specified DrawnButton from the RadioGroup.
Parameters:
b - an instance of DrawnButton.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
When a DrawnButton has been pressed, this method makes sure it is the only button selected.
Specified by:
actionPerformed(java.awt.event.ActionEvent) in interface java.awt.event.ActionListener

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD